Get the volume of a sphere with R=6ΒΆ
Get the volume of a sphere with radius 6.
pi = 3.1415926535897931
r = 6.0
V = 4.0/3.0 * pi * r**3
print('The volume of the sphere is: ', V)
Output:
The volume of the sphere is: 904.7786842338603
Get the volume of a sphere with radius 6.
pi = 3.1415926535897931
r = 6.0
V = 4.0/3.0 * pi * r**3
print('The volume of the sphere is: ', V)
Output:
The volume of the sphere is: 904.7786842338603